var m_index = function() {
	this.mvu = null;
}

m_index.prototype.init = function() {
	var that = this;

	that.vuInit();
	that.loadAjax();
}

m_index.prototype.vuInit = function() {
	var that = this;
	let tesv = new Vue({
		el: "#mimage_v",
		data: {
			file_data: [],
			table_parm: null,
			files_total: null,
			file_size: 10,
			file_page: 1
		},
		methods: {

		}
	});
	that.mvu = tesv;
}

m_index.prototype.loadAjax = function(page,limit,parm) {
	var that = this;
	var that = this;
	if(page == null || page == undefined) {
		page = 1;
	}
	if(limit == null || limit == undefined) {
		limit = 10;
	}
	if(d_parm == null || d_parm == undefined) {
		d_parm = "";
	}
	var d_parm = {
		page: page,
		limit: limit,
		fileid: parm
	}

	$.ajax({
		type: "post",
		url: "/lvy/file/getfillall",
		data: JSON.stringify(d_parm),
		contentType: "application/json",
		success: function(res) {
			console.log(res);
			for (let i =0; i<res.rows.length; i++) {
				res.rows[i].file_URL = imgserver_utl+res.rows[i].fileurl;
			}
			that.mvu.file_data = res.rows;
			
			that.mvu.files_total = res.total;
			that.mvu.file_size = limit;
			that.mvu.file_page = page;
		}
	});
}